#include <stdio.h>
#include <string.h>
#include "pbc.h"
#include "number.h"


int main(int argc, char const *argv[])
{
    byte buffer[10] = {0};

    int64_t result = -843434934343;
    
    int counter = pbc_encode64(result, buffer);
    printf("counter: %d\n", counter);

    result = 0;
    pbc_decode64(buffer, &result);

    printf("result: %ld\n", result);

    memset(buffer, 0, sizeof(buffer));
    pbc_encode32(78, buffer);

    int i;
    for (i = 0; i < 10; ++i)
    {
        printf("%02x ", buffer[i]);
    }
    printf("\n"); 

    return 0;
}
